package cn.iocoder.yudao.module.project.controller.admin.weighthistory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 称重业务 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WeightHistoryRespVO {

    @Schema(description = "主键编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12246")
    @ExcelProperty("主键编号")
    private String id;

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单编号")
    private String orderCode;

    @Schema(description = "内码编号")
    @ExcelProperty("内码编号")
    private String internalCode;

    @Schema(description = "电子秤id", example = "25230")
    @ExcelProperty("电子秤id")
    private Long scaleId;

    @Schema(description = "电子秤名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("电子秤名称")
    private String scaleName;

    @Schema(description = "ip", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("ip")
    private String ip;

    @Schema(description = "port", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("port")
    private String port;

    @Schema(description = "重量(g)")
    @ExcelProperty("重量(g)")
    private Double weight;

    @Schema(description = "重量状态(0:正常:1过轻,2:过重)", example = "2")
    @ExcelProperty("重量状态(0:正常:1过轻,2:过重)")
    private Integer weightStatus;

    @Schema(description = "操作员", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("操作员")
    private String operator;

    @Schema(description = "操作时间")
    @ExcelProperty("操作时间")
    private LocalDateTime operatingTime;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "称重工位ID")
    private Integer weightWorkstationId;

    @Schema(description = "称重工位用户ID")
    private Integer weightWorkstationUserId;

}
